﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="QSASPMVCApplicationCSharp.Views.Products.Edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit Product</h2>

    <span class="message">
        <%=TempData["Message"] %>
    </span>

    <%=Html.ValidationSummary() %>

    <% using (Html.Form()) { %>

        <table>
            <tr>
                <td>Product Name:</td>
                <td>
                    <%=Html.TextBox("ProductName")%>
                    <%=Html.ValidationMessage("ProductName", "*")%>
                </td>
            </tr>
            <tr>
                <td>Unit Price:</td>
                <td>
                    <%=Html.TextBox("UnitPrice") %> 
                    <%=Html.ValidationMessage("UnitPrice", "*")%>
                </td>
            </tr>
            <tr>
                <td>Reorder Order:</td>
                <td>
                    <%=Html.TextBox("ReorderLevel") %> 
                    <%=Html.ValidationMessage("ReorderLevel", "*")%>
                </td>
            </tr>
            <tr>
                <td>Discontinued:</td>
                <td>
                    <%=Html.CheckBox("Discontinued")%> 
                    <%=Html.ValidationMessage("Discontinued", "*")%>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="Save" /></td>
            </tr>
        </table>

    <% } %>
</asp:Content>
